<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/><![endif]-->
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>自动安装游戏服状态</title>
    
    <style>
	    .red{color:#dd5a43!important}
	    .green{color:#69aa46!important}.light-green{color:#b0d877!important}
    </style>

    <%@include file="../include/csslib.jsp"%>
	<link href="${pageContext.request.contextPath}/static/web_css/game/game.css" rel="stylesheet" type="text/css">
</head>

<body>
<table class="table table-striped table-bordered table-hover" id="tb">
    <thead class="thin-border-bottom">
        <tr>
            <th>区服名称</th>
            <th>游戏服ID</th>
            <th>域名(IP)</th>
            <th>从库IP</th>
            <th>开服日期</th>
            <th>最佳部署机器</th>
            <th>渠道尾服</th>
        </tr>
    </thead>
    <tbody>
    <tr>
    <td>${po.game_dir}</td>
    <td>${po.game_server_id}</td>
    <td>${po.game_domain}</td>
    <td>${po.game_db_slave}</td>
    <td>${po.game_start_date}</td>
    <td>${po.toIp}</td>
    <td>${po.lastServerGameDir}</td>
    </tr>
    </tbody>
</table>

<c:choose>
	<c:when test="${po.msg != null and po.msg['error'] != null}"> 
		<p class="red">${po.msg['error']}</p>
	</c:when>
	
	<c:otherwise>
		<p class="green">条件检测成功</p>
	</c:otherwise>
</c:choose>

<c:choose>
	<c:when test="${po.msg != null and po.msg['transfer_script'] != null}"> 
		<p class="red">${po.msg['transfer_script']}</p>
	</c:when>
	
	<c:otherwise>
		<p class="green">传输部署脚本成功</p>
	</c:otherwise>
</c:choose>	

<c:choose>
	<c:when test="${po.msg != null and po.msg['uncompress_script'] != null}"> 
		<p class="red">${po.msg['uncompress_script']}</p>
	</c:when>

	<c:otherwise>
		<p class="green">解压安装包成功</p>
	</c:otherwise>
</c:choose>	
	
<c:choose>	
	<c:when test="${po.msg != null and po.msg['transfer_package_create'] != null}"> 
		<p class="red">${po.msg['transfer_package_create']}</p>
	</c:when>
	
	<c:otherwise>
		<p class="green">传输创建package脚本成功</p>
	</c:otherwise>
</c:choose>
	
<c:choose>	
	<c:when test="${po.msg != null and po.msg['uncompress_script_create'] != null}"> 
		<p class="red">${po.msg['uncompress_script_create']}</p>
	</c:when>
	
	<c:otherwise>
		<p class="green">解压创建package脚本成功</p>
	</c:otherwise>
</c:choose>
	
<c:choose>	
	<c:when test="${po.msg != null and po.msg['create_package'] != null}"> 
		<p class="red">${po.msg['create_package']}</p>
	</c:when>
	
	<c:otherwise>
		<p class="green">创建最新服务端程序包和数据库结构文件成功</p>
	</c:otherwise>
</c:choose>
	
<c:choose>	
	<c:when test="${po.msg != null and po.msg['transfer_package'] != null}"> 
		<p class="red">${po.msg['transfer_package']}</p>
	</c:when>
	
	<c:otherwise>
		<p class="green">传输package失败或传输数据库结构文件成功</p>
	</c:otherwise>
</c:choose>
	
<c:choose>	
	<c:when test="${po.msg != null and po.msg['exec_script'] != null}"> 
		<p class="red">${po.msg['exec_script']}</p>
	</c:when>
	
	<c:otherwise>
		<p class="green">执行装服脚本成功</p>
	</c:otherwise>
</c:choose>

<p class="green">域名解析:${po.msg['domainBinding']}</p>

<iframe id="index_right" name="index_right" 
	src="${pageContext.request.contextPath}/game/game_process/game_install_log_status?gameDir=${po.game_dir}&toIp=${po.toIp}&toSSHPort=${po.toSSHPort}" width=100% align="center" height=500 frameborder="0" scrolling="yes">
</iframe>    

</body>
</html>